﻿@{
    Layout = "~/Views/Shared/AccountMaster.cshtml";
}


<input type="hidden" value="@ViewBag.Id" id="userId" />
<div class="dialog">
    <div class="block">
        <p class="block-heading">修改用户</p>
        <div class="block-body">
            <label>用户名</label>
            <input type="text" class="span12" id="userName" value="@ViewBag.userName">
            <label>密码</label>
            <input type="password" class="span12" id="passWord">
            <button class="btn btn-primary" id="updateAdmin" style="margin-left:58%;"><i class="icon-save"> </i>保存</button>
            <button aria-hidden="true" onclick="javascript: history.go(-1);" class="btn" style="margin-left:5%;">取消</button>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).keydown(function (event) {
        if (event.keyCode == 13) {
            $("#updateAdmin").click();
        }
    });
</script>



